<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Campaigns History - Magneto, by Protoweb</title>

  {include file="head-common.html"}

  <script src="{views_url}js/lib/flot/jquery.flot.min.js"></script>

</head>

<body>

  {include file="header.html"}

  <div class="main container">

    <h1 class="over-bg antialias-white">History</h1>

    {include file="messages_managment.html"}

    {foreach from=$campaigns item="campaign" name=history}
    <div class="row">

      <h2 class="span12">{$campaign->subject}</h2>
      <div class="span2">Sent: {$campaign->sends_delivered() + $campaign->sends_read()} emails </div>
      <div class="span3">Read: {$campaign->sends_read()} different people </div>
      <div class="span2">Open: {$campaign->sends_read()} times </div>
      <div class="span2">Bounced: {$campaign->sends_bounced()} recipients </div>
      <div class="span2">Undelivered: {$campaign->sends_undelivered()} emails </div>

    </div>
    {/foreach}

  </div>
  <!-- main container -->

  {include file="footer.html"}

</body>
</html>